﻿using Adnc.Application.Shared.Dtos;
using System;
using System.Collections.Generic;
using System.Text;

namespace WYT.Ord.Application.Contracts.Dtos.Order
{
    /// <summary>
    /// 订单列表对象
    /// </summary>
    public class OrderListDto : IDto
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 支付金额
        /// </summary>
        public decimal Payment { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 运费
        /// </summary>
        public decimal Postage { get; set; }

        /// <summary>
        /// 商品信息
        /// </summary>
        public List<OrderListProdcutDto> Prodcut { get; set; }
    }

    /// <summary>
    /// 订单列表商品信息
    /// </summary>
    public class OrderListProdcutDto : IDto { 
        /// <summary>
        /// 订单商品记录ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public long GoodsId { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 商品规格ID
        /// </summary>
        public long GoodsSizeId { get; set; }

        /// <summary>
        /// 商品规格名称
        /// </summary>
        public String GoodsSizeName { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        public string GoodsImage { get; set; }

        /// <summary>
        /// 商品状态
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 是否是赠品
        /// </summary>
        public bool IsGift { get; set; }

        /// <summary>
        /// 邮费
        /// </summary>
        public decimal Postage { get; set; }
    }
}
